/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package postlogin.model.impl;

import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.model.CacheModel;

import postlogin.model.UsuarioSlicRol;

import java.io.Serializable;

/**
 * The cache model class for representing UsuarioSlicRol in entity cache.
 *
 * @author tito
 * @see UsuarioSlicRol
 * @generated
 */
public class UsuarioSlicRolCacheModel implements CacheModel<UsuarioSlicRol>,
	Serializable {
	@Override
	public String toString() {
		StringBundler sb = new StringBundler(7);

		sb.append("{usuarioSlicRolId=");
		sb.append(usuarioSlicRolId);
		sb.append(", usuario=");
		sb.append(usuario);
		sb.append(", rol=");
		sb.append(rol);
		sb.append("}");

		return sb.toString();
	}

	public UsuarioSlicRol toEntityModel() {
		UsuarioSlicRolImpl usuarioSlicRolImpl = new UsuarioSlicRolImpl();

		usuarioSlicRolImpl.setUsuarioSlicRolId(usuarioSlicRolId);

		if (usuario == null) {
			usuarioSlicRolImpl.setUsuario(StringPool.BLANK);
		}
		else {
			usuarioSlicRolImpl.setUsuario(usuario);
		}

		if (rol == null) {
			usuarioSlicRolImpl.setRol(StringPool.BLANK);
		}
		else {
			usuarioSlicRolImpl.setRol(rol);
		}

		usuarioSlicRolImpl.resetOriginalValues();

		return usuarioSlicRolImpl;
	}

	public long usuarioSlicRolId;
	public String usuario;
	public String rol;
}